package com.ruoyi.business.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员卡模块 member_card
 *
 * @author 石涛
 * &#064;date  2023-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("会员卡模块")
public class MemberCard extends BaseEntity {

  /**
   * 会员卡id
   */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "会员卡id")
  private Long id;

  /**
   * 会员卡名称
   */
  @Excel(name = "会员卡名称")
  @ApiModelProperty(value = "会员卡名称")
  private String name;

  /**
   * 会员卡时长（以天为单位）
   */
  @Excel(name = "会员卡时长（以天为单位）")
  @ApiModelProperty(value = "会员卡时长（以天为单位）")
  private Long duration;

  /**
   * 状态（0: 启用 1: 停用）
   */
  @Excel(name = "状态（0: 启用 1: 停用）")
  @ApiModelProperty(value = "状态（0: 启用 1: 停用）")
  private String status;
  @Getter
  private String createBy;
  @Getter
  private String updateBy;


  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }

}
